/*
 * @Author: your name
 * @Date: 2020-11-12 18:07:54
 * @LastEditTime: 2020-11-16 16:14:39
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \tlwok-filing-saas-front\src\api\projectInfo.js
 */
import Http from "@/lib/http";

// 服务商
export function page(startPage, size, data) {
  return Http.post(
    `/projectInformation/queryGoodsData?startPage=${startPage}&size=${size}`,
    data
  );
}

export function detail(data) {
  return Http.get(`/projectInformation/queryGoodsDetail`, data);
}

// 运营后台
export function pageOfAdmin(startPage, size, data) {
  return Http.post(
    `/manage/projectInfo/queryGoodsData?startPage=${startPage}&size=${size}`,
    data
  );
}

export function deleteGoodsById(data) {
  return Http.get(`/manage/projectInfo/deleteGoodsById`, data);
}

export function downloadExcelTmpl(data) {
  return Http.get(`/manage/projectInfo/downloadExcelTmpl`, data);
}

export function detailOfAdmin(data) {
  return Http.get(`/manage/projectInfo/queryGoodsDetail`, data);
}

export function queryPurchasePlatformName(data) {
  return Http.get(`/manage/projectInfo/queryPurchasePlatformName`, data);
}